<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>易商通运营平台</title>
    <script type="text/javascript" src="__PUBLIC__/libs/js/jquery.js"></script>
    <script type="text/javascript" src="__PUBLIC__/libs/js/framework.js"></script>
    <link href="__PUBLIC__/libs/css/import_basic.css" rel="stylesheet" type="text/css"/>
    <link rel="stylesheet" type="text/css" id="skin" prePath="__PUBLIC__/"/>
    <link rel="stylesheet" type="text/css" id="customSkin"/>
    <script type="text/javascript" src="__PUBLIC__/libs/js/form/datePicker/WdatePicker.js"></script>
    <script type="text/javascript" src="__PUBLIC__/libs/js/nav/pageNumber.js"></script>
    <style>body {
        background-color: #dbeefd
    }</style>
</head>
<body>
<div class="box1">
    <fieldset style="border-color:#999999;">

        <legend>角色管理</legend>
        <div class="box2" panelTitle="功能面板" id="searchPanel">
            <table>
                <tr>
                    <td>人员名：</td>
                    <td><input id="query_userName" value="" type="text"/><input type="text"
                                                                                style="width:2px;display:none;"/></td>
                    <td>
                        <button type="button" onclick="searchHandler()"><span class="icon_find">查询</span></button>
                    </td>
                    <td>
                        <button type="button" onclick="resetSearch()"><span class="icon_reload">重置</span></button>
                    </td>

                </tr>
            </table>
        </div>
        <table class="tableStyle">
            <tr>
                <th>角色名称</th>
                <th>状态</th>
                <th>权限</th>
                <th >显示菜单</th>
                <th >显示页面</th>
                <th >排序顺序</th>
                <th >管理</th>
            </tr>
            <volist name="list" id="vo">
                <tr>
                    <td><a href="__URL__/rolecontent/id/{$vo['id']}">{$vo['name']}</a></td>

                    <td>
                        <?php
            if($vo['status']==1){
            echo "正常";
            }else{
            echo "禁用";
            }
            ?></td>
                    <td>{$vo['rules']}</td>
                    <td>{$vo['menu']}</td>
                    <td>{$vo['firstpage']}</td>
                    <td>{$vo['desorder']}</td>
                    <td><a href="__URL__/updaterole/id/{$vo['id']}">修改</a> <a href="__URL__/delrole/id/{$vo['id']}">删除</a></td>
                </tr>
            </volist>
            </tr>

        </table>
        <br/>
        <legend>角色添加</legend>
        <form action="__URL__/addrole" method="post">
            <table class="tableStyle">
                <tr>
                    <td align="right">角色名称：</td>
                    <td><input type="text" name="name" value="职员" /></td>
                </tr>
                <tr>
                    <td align="right">权限：</td>
                    <td><input type="text" name="rules" value="修改"/></td>
                </tr>

                <tr>
                    <td width="15%"  align="right">父级分类：</td>
                    <td width="85%">

                        <select name="pid">
                            <option value="">选择：</option>
                            <volist name="rolelist" id="vo">
                                <option value="{$vo['id']}">{$vo['name']}</option>
                            </volist>
                        </select>

                         </td>
                </tr>
                <tr>
                    <td width="15%" align="right">欢迎页面：</td>
                    <td width="85%">	  <input type="text" name="firstpage" id="firstpage"/></td>
                </tr>

                <tr>
                    <td width="15%" align="right">显示顺序：</td>
                    <td width="85%">	  <input type="text" name="desorder" id="desorder" value="20" /></td>
                </tr>

                <tr>
                    <td width="15%" align="right">备注：</td>
                    <td width="85%">
                        <textarea cols="60" rows="8" wrap="virtual"  name="remark" id="remark" style="width:200px;height:60px;"></textarea>

                        <input type="hidden" name="status" id="status" value="1"/>
                        <input type="hidden" name="rules" id="rules" value="1" />
                        <input type="hidden" name="menu" id="menu"/>
                    </td>
                </tr>

                <tr>
                    <td colspan="2"><input type="submit" value="添加"/></td>
                </tr>


            </table>
        </form>
    </fieldset>
</div>


</body>
</html>